package com.itetchologyandenglish.home.service.Impl;

import com.itetchologyandenglish.home.enetity.Assistant;
import com.itetchologyandenglish.home.mapper.AssistantMapper;
import com.itetchologyandenglish.home.service.AssistantService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class AssistantServiceImpl implements AssistantService {
    @Resource
    AssistantMapper assistantMapper;
    @Override
    public List<Assistant> getAssistantAll() {
        return assistantMapper.getAssistantAll();
    }

    @Override
    public boolean addassitant(String address, String aname) {
        return assistantMapper.addassitant(address,aname)>0?true:false;
    }

    @Override
    public boolean updateassistant(String address, String aname, Integer id) {
        return assistantMapper.updateassistant(address,aname,id)>0?true:false;
    }
}
